package gat.api.rest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import springfox.documentation.annotations.ApiIgnore;

/**
 * 首页显示swagger接口
 * 
 * @author: tmac
 * @email: tmac
 */
@Controller
@ApiIgnore
class HomeController {
    @RequestMapping(value = {"/swagger"})
    public String index() {
        return "redirect:swagger-ui.html";
    }

    @RequestMapping(value = {"/"})
    public String getIndex() {

        return "forward:/model/index";

    }
}